package Loop;

/**
 * Enjoy programming!!!
 * Time: 2021/10/27 -  9:22
 */
public class Summation00 {
    public static void main(String[] args){
        int[] Pnumbers = new int[50];
        int[] Nnumbers = new int[50];
        int h = 0;

        for (int i = 0; i < 50; i++){
            Pnumbers[i] = 1 / (2 * i + 1);
            Nnumbers[i] = 1 / (2 * i + 2);
        }
        for (int j = 0; j < 50; j++){
            h = h + Pnumbers[j] + Nnumbers[j];
        }
System.out.println(h);
    }
}
